package com.ruoyi;

import cn.hutool.core.date.StopWatch;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(scanBasePackages = {"com.mucd.chat","com.ruoyi"})
@Slf4j
@EnableWebSocket
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        StopWatch stopWatch = new StopWatch();
        stopWatch.start("启动项目");

        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  IM启动成功   ლ(´ڡ`ლ)ﾞ  \n");

        stopWatch.stop();

        log.info("项目启动时间耗时：{}秒", stopWatch.getTotalTimeSeconds());

    }
}
